package com.java8.ch02;

/*
 	Demonstrate the for loop.
 	
 	Call this file "ForTest.java".
 */
public class ForTest {
	
	public static void main(String[] args) {
		int x;
		for (x = 0; x < 10; x=x+1) {
			System.out.println("This is x: " + x);
		}
		//this is better
		for (x = 0; x < 10; x++) {
			System.out.println("This is x: " + x);
		}
	}

}
